import QtQuick 2.0
import QtQuick.Controls 2.0

Flickable{
    contentHeight: column.implicitHeight

    Column{
        id: column
        anchors.margins: 6
        spacing: 6

        //文本
        Rectangle{
            width: 80
            height: colElide.implicitHeight
            border.color: "black"
            Column{
                id: colElide
                width: parent.width
                spacing: 10

                Text {width: parent.width;text: "未剪切的文本会超出显示，Hello World"; elide: Text.ElideNone }
                Text {width: parent.width;text: "Hello World"; elide: Text.ElideNone; clip: true }
                Text {width: parent.width;text: "Hello World"; elide: Text.ElideLeft }
                Text {width: parent.width;text: "Hello World"; elide: Text.ElideMiddle }
                Text {width: parent.width;text: "Hello World"; elide: Text.ElideRight }

                Text {width: parent.width;text: "中文自动换行"; wrapMode: Text.WordWrap }
                Text {width: parent.width;text: "中文自动换行"; wrapMode: Text.WrapAnywhere }
                Text {width: parent.width;text: "中文自动换行"; wrapMode: Text.Wrap }
                Text {width: parent.width;text: "中文手动\n换行"; wrapMode: Text.Wrap }

                Text {width: parent.width;text: "Hello Wrap text test"; wrapMode: Text.WordWrap }
                Text {width: parent.width;text: "Hello Wrap text test"; wrapMode: Text.WrapAnywhere }
                Text {width: parent.width;text: "Hello Wrap text test"; wrapMode: Text.Wrap }
            }
        }


    }

}
